package com.buba.matter.service.Impl;

import com.buba.matter.dao.InfoMapper;
import com.buba.matter.pojo.Info;
import com.buba.matter.service.InfoService;
import com.buba.system.pojo.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class InfoServiceImpl implements InfoService {
    private InfoMapper infoMapper;

    @Override
    public Long selInfoCount() {
        return infoMapper.selInfoCount();
    }

    @Override
    public List<Info> selInfoTable(Page<Info> page) {
        return infoMapper.selInfoTable(page);
    }

    @Override
    public Integer addInfo(Map<String, Object> map) {
        return infoMapper.addInfo(map);
    }

    @Override
    public Integer delInfoAll(List<String> list) {
        return infoMapper.delInfoAll(list);
    }

    @Override
    public Integer updInfo(Map<String, Object> map) {
        return infoMapper.updInfo(map);
    }

    @Override
    public List<Info> selMatterInfoByCondition(Map<String, Object> map) {
        return infoMapper.selMatterInfoByCondition(map);
    }





    @Override
    public Long addMatterInfoByList(List<Info> list) {
        return infoMapper.addMatterInfoByList(list);
    }

    @Override
    public List<Info> selMatterInfoItemsInfoNo(Map<String, Object> map) {
        return infoMapper.selMatterInfoItemsInfoNo(map);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return infoMapper.selCount(map);
    }

    @Override
    public List<Info> selAllInfo(Map<String, Object> map) {
        return infoMapper.selAllInfo(map);
    }


    @Autowired
    public void setInfoMapper(InfoMapper infoMapper) {
        this.infoMapper = infoMapper;
    }
}
